from zhanshop.env import Env
from zhanshop.app import App

database = {
    'hostname' : App.make(Env).get("database.host", "zhanshop-mysql"),
    'database' : App.make(Env).get("database.dbname", "zhanshop-py"),
    'username' : App.make(Env).get("database.user", "root"),
    'password' : App.make(Env).get("database.pwd", "123456"),
    'hostport' : int(App.make(Env).get("database.port", "3306")),
    'charset' : App.make(Env).get("database.charset", "utf8mb4"),
    'debug': bool(App.make(Env).get("database.debug", "")),
    'params' : {
    },
}